from centos:7


COPY fcgi* /usr/include
COPY libfcgi* /usr/lib64
COPY fcgiwrap /usr/local/sbin

RUN cd /usr/lib64 \
    && ln -s libfcgi.so.0.0.0 libfcgi.so.0 \
    && ln -s libfcgi.so.0.0.0 libfcgi.so \
    && ln -s libfcgi++.so.0.0.0 libfcgi++.so.0 \
    && ln -s libfcgi++.so.0.0.0 libfcgi++.so \
    && rm -f /usr/include/fcgiwrap \
    && yum install -y perl \
    && yum install -y perl-DBI \
    && yum install -y perl-DBD-MySQL \
    && yum install -y perl-DBD-SQLite \
    && yum install -y perl-JSON \
    && yum install -y python3 \
    && pip3 install esdk-obs-python \
    && pip3 install huaweicloudsdkevs

